import java.util.Arrays;

public class SortTest {
	public static void main(String[] args) {
		Setup.readSerializedUA();
		User[] USERB = Setup.USERA;
		for (int i = 0; i < 10; i++) {
			System.out.println(Arrays.toString(USERB[i].items));
			System.out.println(Arrays.toString(USERB[i].votes));
		}

		System.out.println("\n\nstarting sorting:");
		long time = System.currentTimeMillis();
		for (User u : USERB) {
			u.sort();
		}
		System.out.println(System.currentTimeMillis() - time);

		System.out.println("\n\nsort\n\n");

		for (int i = 0; i < 10; i++) {
			System.out.println(Arrays.toString(USERB[i].items));
			System.out.println(Arrays.toString(USERB[i].votes));
		}
	}
}